import { http } from "@/utils"

// 查看单条博客
export const getBlogInfoAPI = (id) => http.get(`/blogpart/${id}`)

// 新增博客
export const getBlogAddAPI = (data) => http.post('/blogpart/addSave', data)

// 修改博客状态
export const getBlogStatusModifyAPI = (data) => http.put('/blogpart', data)

// 删除博客
export const getBlogDeleteAPI = (id) => http.delete(`/blogpart/${id}`)

// 查询所有博客
export const getAllBlogAPI = (params) => http.get('/search/admin', {params})

